import { axios } from '@/utils/request'
export function subjectList(params) {
    return axios({
      url: '/school/subjects',
      method: 'post',
      data: params
    })
  }
  export function addSubject(params) {
    return axios({
      url: '/school/subjects/batch-add',
      method: 'post',
      data: params
    })
  }
  export function changeSubjectType(params,id) {
    return axios({
      url: '/school/subjects/'+id+'/enable-status',
      method: 'post',
      data: params
    })
  }

  export function delSubject(params) {
    return axios({
      url: '/school/subjects/batch-delete',
      method: 'post',
      data: params
    })
  }
  // /subjects/batch-delete
  export function changeSubject(params,id) {
    return axios({
      url: '/school/subjects/'+id+'/update',
      method: 'post',
      data: params
    })
  }

 